Fixed a cleanup of a variable used in a loop and added a debug message.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
char *sstate;
char *p;
char buf[80];
- int type = DEVTYPE_UNKNOWN;
+ int type;
int ch;
int debug_fd;
FILE *pidfile_f;
for (;;) {
vec = xs_read_watch(xs, &num);
+ dodebug("read from xen watch: %s", *vec);
if (!vec) {
dolog(LOG_ERR, "xs_read_watch: NULL\n");
continue;
if (s != NULL && state != 6 /* XenbusStateClosed */)
goto next2;
+ type = DEVTYPE_UNKNOWN;
if (strncmp(vec[XS_WATCH_PATH],
DOMAIN_PATH "/backend/vif",
strlen(DOMAIN_PATH "/backend/vif")) == 0)